﻿#region File and License Information
/*
<File>
	<License>
		Copyright © 2009 - 2017, Daniel Vaughan. All rights reserved.
		This file is part of Calcium (http://calciumsdk.net), 
		which is released under the MIT License.
		See file /Documentation/License.txt for details.
	</License>
	<CreationDate>2010-11-25 17:10:51Z</CreationDate>
</File>
*/
#endregion

using Microsoft.Phone.Controls;

namespace Outcoder.UI.Xaml
{
	public static class PageOrientationExtensions
	{
		public static bool IsLandscape(this PageOrientation pageOrientation)
		{
			return (pageOrientation & PageOrientation.Landscape) != 0;
		}

		public static bool IsPortrait(this PageOrientation pageOrientation)
		{
			return (pageOrientation & PageOrientation.Portrait) != 0;
		}
	}
}
